package com.igeek.oa.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.igeek.oa.entity.Address;
import com.igeek.oa.entity.Officesupplies;
import com.igeek.oa.mapper.AddressMapper;
import com.igeek.oa.service.IAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 部门地址表 服务实现类
 * </p>
 *
 * @author author
 * @since 2024-08-28
 */
@Service
public class AddressServiceImpl extends ServiceImpl<AddressMapper, Address> implements IAddressService {
    @Autowired
    private AddressMapper addressMapper;
    @Override
    public List<Address> getAdress() {
        LambdaQueryWrapper<Address> addressLambdaQueryWrapper = new LambdaQueryWrapper<>();
        List<Address> addresses = addressMapper.selectList(addressLambdaQueryWrapper);
        return addresses;
    }
}
